You are here: Building the Model: Advanced Elements > Modeling Tips > Displaying Statistics On Screen
Effective use of statistics lends meaning and credibility to simulation models. This section is designed to show ways of displaying statistics on screen while the simulation is running. It also provides examples you can incorporate into any model.
Displaying on-screen statistics is valuable for adding model clarity as well as providing a way to keep track of what is happening in the model. The technique used for displaying statistics is to define variables within your model, perform certain functions on those variables (e.g., addition, subtraction, etc.), and then display those variables on the screen.
ProModel defines variables as symbols (e.g., x, y, and var1) that hold numeric values. They are defined in the Variables edit table. When defining variables, you must include the following information:
• Name (may be alphanumeric combination)
• Initial value (may be any value)
After defining a variable, you may display it anywhere on the layout screen by simply clicking with your mouse in the desired position with the variable highlighted in the edit table.
How to show system throughput on the screen:
1. Define the variable "thruput."
2. Display the variable on the screen.
3. In the processing edit table, increment the variable by one each time an entity leaves the system.
Another common, on-screen statistic is work in process (WIP). To show this statistic on the screen, follow the first two steps above. To accurately indicate the WIP in your model, increment a variable as entities enter the system and use the decrement statement as they exit the system.
How to display the total system time for entities:
1. Assign the simulation clock time to an entity attribute at the beginning of your simulation.
2. Subtract that attribute from the current clock time at the ending location and assign it to a variable you can display.
For example, to display total system time for entities in the system, define a variable and an attribute. The entity attribute, Input_Time, records the time an entity entered the system. The variable, Sys_Time, records the elapsed time each entity spent in the system (clock-input time). By displaying the variable on the layout, you will have a dynamic value showing system time of the exiting entity.